# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=py3-swapper
_pkgname=swapper
pkgver=1.3.0
pkgrel=3
pkgdesc="Django Swappable Models"
url="https://github.com/openwisp/django-swappable-models"
arch="noarch"
license="MIT"
depends="
	py3-django
"
checkdepends="
	py3-flake8
	py3-tox
"
makedepends="py3-setuptools_scm"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="
44404bfc4bd7b832e09f6df04f046df80e72d25307299e2d7565c3d3c9d9f2156473f20a3c3922ad02118c5486aecf9cd1b912b9334c31a482eccc7d04ad886d  swapper-1.3.0.tar.gz
"
